package Interator;

import java.util.Iterator;

public class NameRepository implements Container{

    private String[] names;

    public NameRepository(String[] names){
        this.names = names;
    }
    @Override
    public Iterator getIterator() {
        return (Iterator) new NameIterator(names);
    }
}
